<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>用户信息</title>
    <link rel="stylesheet" href="/public/lib/layui-v2.5.4/layui/css/layui.css">
    <link rel="stylesheet" href="/public/css/userinfo.css">
</head>
<body>
    <table id="demo" lay-filter="test"></table>
    <!-- 头部工具栏 -->
    <script type="text/html" id="toolbar">
        <div class="layui-inline">
            <div class="layui-input-inline">
                <input type="text" name="num" placeholder="请输入工号" class="layui-input">
            </div>
            <button class="layui-btn layui-icon layui-icon-search" lay-event="search">查找</button>
            <button class="layui-btn layui-icon layui-icon-add-1" lay-event="add">添加数据</button>
            <button class="layui-btn layui-icon layui-icon-delete" lay-event="deletes">批量删除</button>
            <button class="layui-btn layui-icon layui-icon-refresh" lay-event="refresh">刷新</button>
        </div>
    </script>
    <!-- 行工具栏 -->
    <script id="rowTools" type="text/html">
        <button class="layui-btn layui-btn-xs" lay-event="edit">编辑</button>
        <button class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</button>
    </script>
    <!-- 用户信息添加框 -->
    <form class="form">
        <div class="form-num">
            <label>工号:</label>
            <input type="text" name="num" placeholder="工号" autofocus required class="num">
        </div>
        <div class="form-name">
            <label>姓名:</label>
            <input type="text" name="name" placeholder="姓名" required class="name">
        </div>
        <div class="form-sex">
            <label>性别:</label>
            <label><input type="radio" name="sex" value="男" checked>&nbsp;男</label>
            <label><input type="radio" name="sex" value="女">&nbsp;女</label>
        </div>
        <div class="form-phone">
            <label>电话:</label>
            <input type="text" name="phone" placeholder="电话" required class="phone">
        </div>
        <div class="form-address">
            <label>地址:</label>
            <select class="province" name="province"></select>
            <select class="city" name="city"></select>
            <select class="town" name="town"></select>
        </div>
        <div class="form-addressed"></div>
        <div class="form-major">
            <label>专业:</label>
            <input type="text" name="major" placeholder="专业" required class="major">
        </div>
        <div class="form-dept">
            <label>部门:</label>
            <input type="text" name="department" placeholder="院系/部门" required class="department">
        </div>
        <div class="form-submit">
            <button type="button" class="layui-btn layui-btn-sm submit">提交</button>
            <button type="reset" class="layui-btn layui-btn-sm reset">重置</button>
        </div>
    </form>
    <script src="/public/lib/jquery-easyui-1.8.7/jquery.min.js"></script>
    <script src="/public/lib/layui-v2.5.4/layui/layui.js"></script>
    <script src="/public/js/distpicker.js"></script>
    <script src="/public/js/userinfo.js"></script>
    <script>
        $(function(){
            $('.form-address').distpicker({
                autoSelect: 3
            });
        });
    </script>
</body>
</html>